package command;

import empty.users.User;
import server.ServerThread;

import java.io.Serializable;

public abstract class Command implements Serializable {

    public Object o; // 发送的数据
    public Object r; // 返回的数据
    public Exception e; // 错误类型
    public String path; // 存储路径
    //上传和下载的文件内容
    public byte[] bytes;

    // 用户
    public User user;

    public abstract void excute();
    public abstract void excute(ServerThread st);

    public Object getO() {
        return o;
    }

    public void setO(Object o) {
        this.o = o;
    }

    public Object getR() {
        return r;
    }

    public void setR(Object r) {
        this.r = r;
    }

    public Exception getE() {
        return e;
    }

    public void setE(Exception e) {
        this.e = e;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


}
